<style>
    .pageFooter{
        width: 100%;
        height: 40px;
        bottom:0;
    }

    .textCenter{
        text-align: center;
    }

</style>


<div class="pageFooter" id="footer">
    <p class="textCenter"><a href="javascript:void(0);">关于我们</a>  技术支持:<a>对抗小分队</a> <a href="http://www.miitbeian.gov.cn">蒙ICP备06004630号</a></p>
</div>
<script>
    //获取屏幕高度
    var screenHeight=$(window).height();
    //获取文本高度
    var textHeight=$(document).height();
    if(textHeight<=screenHeight)
        $("#footer").css({"position":"absolute"});

</script>